import request from '@/api/request.js'
//首页
export function homeApiData(data) {
	return request.request({
		url: `api/wash/distribution/index`,
		method: 'GET',
		data: data,
	})
}

//提现明细
export function withdrawalApiDetails(data) {
	return request.request({
		url: `api/wash/distribution/royaltyInfo`,
		method: 'GET',
		data: data,
	})
}

//推广明细
export function popularizeInfo(data) {
	return request.request({
		url: `api/wash/distribution/popularizeInfo`,
		method: 'GET',
		data: data,
	})
}

//分销商品
export function distributionApiGoods(data) {
	return request.request({
		url: `api/wash/distribution/goods`,
		method: 'GET',
		data: data,
	})
}


export function giveRecord(data) {
	return request.request({
		url: `api/wash/channel/giveRecord`,
		method: 'GET',
		data: data,
	})
}

//渠道商品
export function channelGoods(data) {
	return request.request({
		url: `api/wash/channel/goodsList`,
		method: 'GET',
		data: data,
	})
}



//我的客户
export function distributionApiClient(data) {
	return request.request({
		url: `api/wash/distribution/client`,
		method: 'GET',
		data: data,
	})
}

//我的团队
export function distributionApiTeam(data) {
	return request.request({
		url: `api/wash/distribution/team`,
		method: 'GET',
		data: data,
	})
}

// //我的团队-总数
// export function distributionApiTeamNumb(data) {
// 	return request.request({
// 		url: `api/wash/distribution/team`,
// 		method: 'GET',
// 		data: data,
// 	})
// }

//我的团队-业绩
export function distributionApiTeamGrade(data) {
	return request.request({
		url: `api/wash/distribution/teamGrade`,
		method: 'GET',
		data: data,
	})
}

//提现记录
export function distributionApiCashLog(data) {
	return request.request({
		url: `api/wash/distribution/cashLog`,
		method: 'GET',
		data: data,
	})
}

//我的团队-统计
export function teamCountApi(data) {
	return request.request({
		url: `api/wash/distribution/teamCount`,
		method: 'GET',
		data: data,
	})
}

//个人信息
export function getPersonApi(data) {
	return request.request({
		url: `api/wash/distribution/person`,
		method: 'GET',
		data: data,
	})
}

//分销商品
export function personApiSubmit(data) {
	return request.request({
		url: `api/wash/distribution/personSet`,
		method: 'POST',
		data: data,
	})
}

//邀请码
export function inviteCode(data) {
	return request.request({
		url: `api/wash/distribution/invite`,
		method: 'GET',
		data: data,
	})
}

export function mineGoods(data) {
	return request.request({
		url: `api/wash/channel/mineGoods`,
		method: 'GET',
		data: data,
	})
}

export function channelCashLog(data) {
	return request.request({
		url: `api/wash/channel/cashLog`,
		method: 'GET',
		data: data,
	})
}

export function channelRoyalty(data) {
	return request.request({
		url: `api/wash/channel/royalty`,
		method: 'GET',
		data: data,
	})
}
